package com.zt.english

import android.app.Application
import cn.bingoogolapple.swipebacklayout.BGASwipeBackHelper
import cn.bmob.v3.Bmob
import com.facebook.stetho.Stetho
import com.kongzue.dialog.util.DialogSettings
import com.kongzue.dialog.util.TextInfo


/**
Describe：文件描述
Author:ztind
Date:2021/6/20
 */
class App :Application(){
    override fun onCreate() {
        super.onCreate()
        BGASwipeBackHelper.init(this, null)
        //FaceBook调试器,可在Chrome调试网络请求,查看SharePreferences,数据库等
        Stetho.initializeWithDefaults(this);
        dialogIosStyleConfigure()
        //Bmob sdk init (appkey可替换成你自己的)
        Bmob.initialize(this,"8841b458c1748feb573e0d3ecc6de66b")
    }
    init {
        instance = this
    }
    companion object {
        lateinit var instance: App
    }
    /**
     * **Title: **Dialog弹框库配置
     * **Description: **这里写方法的详细描述
     */
    private fun dialogIosStyleConfigure() {
        DialogSettings.style = DialogSettings.STYLE.STYLE_IOS
        DialogSettings.tipTheme = DialogSettings.THEME.LIGHT
        DialogSettings.contentTextInfo = TextInfo().setBold(true)
        DialogSettings.isUseBlur = true
    }
}